#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
void action1(short*, short, short);
void action2(short*, short);
int main(){
	short arr[10] = {1,2,3,4,5,6,7,8,9,0};
	action1(arr, 10, 2);
}
void action1(short* arr, short len, short step){
	for (short i = 0; i<step; i++){		
		
		bool flag = 0;
		if (flag-1 == 0) action2(arr, len);
		
		short* timed1 = malloc(sizeof(short));
		*timed1 = arr[0];
		for (short j = 0; j<len-1; j++){
			arr[j] = arr[j+1];
		}
		arr[len-1] = *timed1;
		free(timed1);
	}
}

void action2(short* arr, short len){
	for (short i =0; i<len; i++){
		printf("%d ", arr[i]);
	}
	printf("\n");
}
